<?php
class Category extends AppModel {
    var $name = 'Category';

	var $primaryKey = 'category_id';
	
	var $belongsTo = array(
        'ParentCategory' =>
            array('className' => 'Category',
                  'foreignKey' => 'parent_category_id'
        ),
     );

	var $hasMany = array(
        'ChildCategory' =>
            array('className' => 'Category',
                  'foreignKey' => 'parent_category_id'
        ),
     );
}
?>
